import request from '/@/utils/request';

// 查询推广员 结算单列表
export function listSettlement(query?: Object) {
  return request({
    url: '/module/promoterSettlement/list',
    method: 'get',
    params: query
  })
}

// 查询推广员 结算单详细
export function getSettlement(id?: number) {
  return request({
    url: '/module/promoterSettlement/' + id,
    method: 'get'
  })
}

// 新增推广员 结算单
export function addSettlement(data?: Object) {
  return request({
    url: '/module/promoterSettlement',
    method: 'post',
    data: data
  })
}

// 修改推广员 结算单
export function updateSettlement(data?: Object) {
  return request({
    url: '/module/promoterSettlement',
    method: 'put',
    data: data
  })
}

// 删除推广员 结算单
export function delSettlement(id?: number) {
  return request({
    url: '/module/promoterSettlement/' + id,
    method: 'delete'
  })
}

// 导出推广员 结算单
export function exportSettlement(query?: Object) {
  return request({
    url: '/module/promoterSettlement/export',
    method: 'get',
    params: query
  })
}
